#ifndef HELPER_HARDWARES_H
#define HELPER_HARDWARES_H

#include <Arduino.h>
#include "driver/adc.h"
#include "esp_adc_cal.h"
#include <Wire.h>
#include <Adafruit_SHT31.h>

namespace Helper
{

    class Hardware
    {
    protected:
        const int CS_PIN = GPIO_NUM_25;

        const int battery_adc_pin = A0;
        const float battery_min = 3.3; // (V) minimum voltage of battery before shutdown
        const float battery_max = 4.2; // 4.2 (V) maximum voltage of battery

        Adafruit_SHT31 sht31 = Adafruit_SHT31();
        const int temp_adc_pin = A0;
    public:
        Hardware();
        void on();
        void off();
        float getBatteryPercent();
        float getTemperature();
        float getHumidity();
    };

}

#endif